package com.wu.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author Cousin
 * @date 2025/4/6
 * @Description
 */
@Data
@Document
public class Post {

    private ObjectId id;
    private String content;
    private Date createdTime;
    private Integer mediaType;
    private Location location;
    private Long userId;
    private Long resId;
    private String fileName;
    private Integer visibility;



    @Data
    public static class Location{
        private String city;
        private String name;
        private String address;
    }


}
